
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGChunkMaterial.h>
#include <OpenSG/OSGChunkMaterialBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_ChunkMaterial_dump_overloads_0_2, dump, 0, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_ChunkMaterial_addChunk_overloads_1_2, addChunk, 1, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_ChunkMaterial_subChunk_overloads_1_2, subChunk, 1, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_ChunkMaterial_find_overloads_1_2, find, 1, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_ChunkMaterial()
{
    scope* osg_ChunkMaterialBase_scope = new scope(
    class_< osg::ChunkMaterialBase, bases< osg::Material > , boost::noncopyable >("ChunkMaterialBase", no_init)
//        .def_readonly("ChunksFieldMask", &osg::ChunkMaterialBase::ChunksFieldMask)
//        .def_readonly("SlotsFieldMask", &osg::ChunkMaterialBase::SlotsFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::ChunkMaterialBase::MTInfluenceMask)
        .def("getClassType", &osg::ChunkMaterialBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::ChunkMaterialBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::ChunkMaterialBase::*)() )&osg::ChunkMaterialBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::ChunkMaterialBase::*)() const)&osg::ChunkMaterialBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::ChunkMaterialBase::getContainerSize)
        //.def("getChunks", (osg::StateChunkPtr& (osg::ChunkMaterialBase::*)(const osg::UInt32) )&osg::ChunkMaterialBase::getChunks, return_value_policy< copy_const_reference >())
        //.def("getChunks", (osg::MFStateChunkPtr& (osg::ChunkMaterialBase::*)() )&osg::ChunkMaterialBase::getChunks, return_value_policy< copy_const_reference >())
        .def("getChunks", (const osg::MFStateChunkPtr& (osg::ChunkMaterialBase::*)() const)&osg::ChunkMaterialBase::getChunks, return_value_policy< copy_const_reference >())
        //.def("getSlots", (osg::Int32& (osg::ChunkMaterialBase::*)(const osg::UInt32) )&osg::ChunkMaterialBase::getSlots, return_value_policy< copy_const_reference >())
        //.def("getSlots", (osg::MFInt32& (osg::ChunkMaterialBase::*)() )&osg::ChunkMaterialBase::getSlots, return_value_policy< copy_const_reference >())
        .def("getSlots", (const osg::MFInt32& (osg::ChunkMaterialBase::*)() const)&osg::ChunkMaterialBase::getSlots, return_value_policy< copy_const_reference >())
        .def("getBinSize", &osg::ChunkMaterialBase::getBinSize)
        .def("copyToBin", &osg::ChunkMaterialBase::copyToBin)
        .def("copyFromBin", &osg::ChunkMaterialBase::copyFromBin)
        .def("create", &osg::ChunkMaterialBase::create)
        .def("createEmpty", &osg::ChunkMaterialBase::createEmpty)
        .def("shallowCopy", &osg::ChunkMaterialBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::ChunkMaterialBase::NextFieldId;
    scope().attr("SlotsFieldId") = (int)osg::ChunkMaterialBase::SlotsFieldId;
    scope().attr("ChunksFieldId") = (int)osg::ChunkMaterialBase::ChunksFieldId;

    delete osg_ChunkMaterialBase_scope;

    class_< osg::ChunkMaterial, bases< osg::ChunkMaterialBase > , boost::noncopyable, osg::ChunkMaterialRefPtr >("ChunkMaterial", no_init)
        .def("getClassname", &osg::ChunkMaterial::getClassname)
        .def("changed", &osg::ChunkMaterial::changed)
        .def("dump", &osg::ChunkMaterial::dump, osg_ChunkMaterial_dump_overloads_0_2())
        //.def("draw", (void (osg::ChunkMaterial::*)(osg::TypedFunctor1Base<osg::Action::ResultE,osg::PtrCallArg<osg::DrawActionBase>,osg::DefaultFunctorSizeTraits>&, osg::DrawActionBase*) )&osg::ChunkMaterial::draw)
        //.def("draw", (void (osg::ChunkMaterial::*)(osg::Geometry*, osg::DrawActionBase*) )&osg::ChunkMaterial::draw)
        .def("makeState", &osg::ChunkMaterial::makeState)
        .def("rebuildState", &osg::ChunkMaterial::rebuildState)
        .def("isTransparent", &osg::ChunkMaterial::isTransparent)
        .def("addChunk", &osg::ChunkMaterial::addChunk, osg_ChunkMaterial_addChunk_overloads_1_2())
        .def("subChunk", &osg::ChunkMaterial::subChunk, osg_ChunkMaterial_subChunk_overloads_1_2())
        .def("find", (osg::Int32 (osg::ChunkMaterial::*)(osg::StateChunkPtr) )&osg::ChunkMaterial::find)
        .def("find", (osg::StateChunkPtr (osg::ChunkMaterial::*)(const osg::FieldContainerType&, osg::Int32) )&osg::ChunkMaterial::find, osg_ChunkMaterial_find_overloads_1_2())
        .staticmethod("getClassname")
        //.def( self == other< osg::Material >() )
    ;


    register_ptr_to_python<osg::ChunkMaterialPtr>();
    implicitly_convertible<osg::ChunkMaterialRefPtr, osg::ChunkMaterialPtr>();
    implicitly_convertible<osg::ChunkMaterialPtr, osg::MaterialPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::ChunkMaterialPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::ChunkMaterialPtr>);
}

